Carbon


IconRefToIconFamily

Header: Icons.h Carbon status: Supported

Provides icon family data for a given IconRef.

OSErr IconRefToIconFamily (
    IconRef theIconRef, 
    IconSelectorValue whichIcons, 
    IconFamilyHandle *iconFamily
);
theIconRef

An IconRef to use as a source for icon data.

whichIcons

The depths and sizes of icons in the iconFamily data structure. For a description of the possible values, see “Icon Selector Constants”.

iconFamily

On return, a pointer to a handle to the data structure which contains icon data as specified in the IconRef and whichIcons parameters. Icon Services returns NULL if no appropriate icon data is found. For more information on the IconFamily data structure, see 'icns'.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when IconServicesLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by IconServicesLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/18/2000)